package com.lixin.web.webSocket;


import com.lixin.entity.Users;
import com.lixin.model.notify.AddFriendNotify;
import com.lixin.model.request.AcceptFriendRequest;
import com.lixin.model.response.FindAllFriendsResponse;
import com.lixin.model.response.Response;

import java.util.List;

/**
 * <p>
 * 用于存储用户之间的好友关系 Mapper 接口
 * </p>
 *
 * @author lixin
 * @since 2023-07-28
 */
public interface FriendshipsManager extends WebSocketManager {

    Response<Object> addFriend(AddFriendNotify friendId);

    Response<List<FindAllFriendsResponse>> findAllFriends();

    Response<Object> acceptFriendRequest(AcceptFriendRequest acceptFriendRequest);


    Response<Object> deleteFriend(Integer friendId);


    Response<Users> findFriendByUsername(String userName);


}
